← Index
NYTProf Performance Profile   
For ../prof.pl
  Run on Wed Dec 14 16:10:05 2022
Reported on Wed Dec 14 16:12:57 2022

Filename(eval 88)[/Users/ether/.perlbrew/libs/36.0@std/lib/perl5/Eval/TypeTiny.pm:8]
StatementsExecuted 945 statements in 1.40ms
Eval Invoked At/Users/ether/.perlbrew/libs/36.0@std/lib/perl5/Eval/TypeTiny.pm line 8
Sibling evals1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90

NOTE!
The data used to generate this report page was merged from 20 of the 131 executions
of the string eval on line 8 of /Users/ether/.perlbrew/libs/36.0@std/lib/perl5/Eval/TypeTiny.pm.
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
77126311µs15.0msTypes::Standard::::HashRef Types::Standard::HashRef (recurses: max depth 1, inclusive time 11µs)
3875190µs4.18msTypes::Standard::::ArrayRef Types::Standard::ArrayRef
17157128µs7.42msTypes::Standard::::InstanceOf Types::Standard::InstanceOf
2133114µs1.33msTypes::Standard::::Optional Types::Standard::Optional
96581µs3.88msTypes::Standard::::Slurpy Types::Standard::Slurpy
66354µs6.89msTypes::Standard::::Enum Types::Standard::Enum
201149µs49µsEval::TypeTiny::Sandbox::::__ANON__[(eval 103)[Eval/TypeTiny.pm:8]:15]Eval::TypeTiny::Sandbox::__ANON__[(eval 103)[Eval/TypeTiny.pm:8]:15] (merge of 20 subs)
43241µs23.4msTypes::Standard::::Dict Types::Standard::Dict
22116µs7.53msTypes::Standard::::Tuple Types::Standard::Tuple
22212µs2.78msTypes::Standard::::Map Types::Standard::Map
11110µs2.25msTypes::Standard::::HasMethods Types::Standard::HasMethods
0000s0sEval::TypeTiny::::Join Eval::TypeTiny::Join
0000s0sEval::TypeTiny::Sandbox::::__ANON__[(eval 103)[Eval/TypeTiny.pm:8]:13]Eval::TypeTiny::Sandbox::__ANON__[(eval 103)[Eval/TypeTiny.pm:8]:13] (merge of 20 subs)
0000s0sEval::TypeTiny::::Split Eval::TypeTiny::Split
0000s0sTypes::Standard::::ConsumerOf Types::Standard::ConsumerOf
0000s0sTypes::Standard::::CycleTuple Types::Standard::CycleTuple
0000s0sTypes::Standard::::Maybe Types::Standard::Maybe
0000s0sTypes::Standard::::Overload Types::Standard::Overload
0000s0sTypes::Standard::::Ref Types::Standard::Ref
0000s0sTypes::Standard::::ScalarRef Types::Standard::ScalarRef
0000s0sTypes::Standard::::StrMatch Types::Standard::StrMatch
0000s0sTypes::Standard::::Tied Types::Standard::Tied
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package Eval::TypeTiny::Sandbox;
2
# spent 49µs within Eval::TypeTiny::Sandbox::__ANON__[(eval 103)[/Users/ether/.perlbrew/libs/36.0@std/lib/perl5/Eval/TypeTiny.pm:8]:15] which was called 20 times, avg 2µs/call: # (data for this subroutine includes 19 others that were merged with it) # 20 times (49µs+0s) by Eval::TypeTiny::eval_closure at line 248 of Eval/TypeTiny.pm, avg 2µs/call
sub {
3204µsmy $type = ${ $_[0] };
4
5
# spent 6.89ms (54µs+6.84) within Types::Standard::Enum which was called 6 times, avg 1.15ms/call: # once (10µs+3.32ms) by JSON::Schema::Modern::BEGIN@33 at line 54 of JSON/Schema/Modern/Error.pm # once (8µs+1.20ms) by OpenAPI::Modern::BEGIN@26 at line 122 of JSON/Schema/Modern.pm # once (9µs+1.17ms) by JSON::Schema::Modern::BEGIN@34 at line 72 of JSON/Schema/Modern/Result.pm # once (14µs+911µs) by OpenAPI::Modern::BEGIN@26 at line 57 of JSON/Schema/Modern.pm # once (6µs+191µs) by OpenAPI::Modern::BEGIN@26 at line 59 of JSON/Schema/Modern.pm # once (7µs+52µs) by OpenAPI::Modern::BEGIN@26 at line 641 of JSON/Schema/Modern.pm # spent 4.18ms (190µs+3.99) within Types::Standard::ArrayRef which was called 38 times, avg 110µs/call: # 24 times (95µs+0s) by Types::Standard::ArrayRef::__ANON__[/Users/ether/.perlbrew/libs/36.0@std/lib/perl5/Types/Standard/ArrayRef.pm:121] at line 105 of Types/Standard/ArrayRef.pm, avg 4µs/call # 8 times (29µs+0s) by Types::Standard::Tuple::__ANON__[/Users/ether/.perlbrew/libs/36.0@std/lib/perl5/Types/Standard/Tuple.pm:164] at line 157 of Types/Standard/Tuple.pm, avg 4µs/call # 2 times (33µs+2.63ms) by JSON::Schema::Modern::BEGIN@34 at line 67 of JSON/Schema/Modern/Result.pm, avg 1.33ms/call # once (11µs+626µs) by OpenAPI::Modern::BEGIN@26 at line 641 of JSON/Schema/Modern.pm # once (7µs+581µs) by JSON::Schema::Modern::BEGIN@35 at line 79 of JSON/Schema/Modern/Document.pm # once (8µs+113µs) by OpenAPI::Modern::BEGIN@26 at line 743 of JSON/Schema/Modern.pm # once (7µs+36µs) by JSON::Schema::Modern::BEGIN@35 at line 111 of JSON/Schema/Modern/Document.pm # spent 15.0ms (311µs+14.7) within Types::Standard::HashRef which was called 77 times, avg 195µs/call: # 37 times (117µs+0s) by Types::Standard::HashRef::__ANON__[/Users/ether/.perlbrew/libs/36.0@std/lib/perl5/Types/Standard/HashRef.pm:76] at line 69 of Types/Standard/HashRef.pm, avg 3µs/call # 24 times (55µs+-11µs) by Types::Standard::Dict::__ANON__[/Users/ether/.perlbrew/libs/36.0@std/lib/perl5/Types/Standard/Dict.pm:161] at line 148 of Types/Standard/Dict.pm, avg 2µs/call # 3 times (27µs+6.59ms) by JSON::Schema::Modern::BEGIN@35 at line 79 of JSON/Schema/Modern/Document.pm, avg 2.21ms/call # 3 times (18µs+4.17ms) by OpenAPI::Modern::BEGIN@26 at line 641 of JSON/Schema/Modern.pm, avg 1.40ms/call # 3 times (12µs+0s) by Types::Standard::Map::__ANON__[/Users/ether/.perlbrew/libs/36.0@std/lib/perl5/Types/Standard/Map.pm:87] at line 78 of Types/Standard/Map.pm, avg 4µs/call # once (9µs+1.48ms) by OpenAPI::Modern::BEGIN@26 at line 122 of JSON/Schema/Modern.pm # once (36µs+888µs) by OpenAPI::Modern::BEGIN@26 at line 743 of JSON/Schema/Modern.pm # once (7µs+607µs) by OpenAPI::Modern::BEGIN@26 at line 701 of JSON/Schema/Modern.pm # once (13µs+493µs) by OpenAPI::Modern::BEGIN@26 at line 959 of JSON/Schema/Modern.pm # once (9µs+399µs) by OpenAPI::Modern::BEGIN@28 at line 70 of JSON/Schema/Modern/Document/OpenAPI.pm # once (5µs+60µs) by JSON::Schema::Modern::BEGIN@35 at line 91 of JSON/Schema/Modern/Document.pm # once (3µs+0s) by Types::Standard::__ANON__[/Users/ether/.perlbrew/libs/36.0@std/lib/perl5/Types/Standard.pm:190] at line 28 of Types/Standard/Dict.pm # spent 23.4ms (41µs+23.4) within Types::Standard::Dict which was called 4 times, avg 5.86ms/call: # 2 times (17µs+9.26ms) by OpenAPI::Modern::BEGIN@26 at line 122 of JSON/Schema/Modern.pm, avg 4.64ms/call # once (13µs+8.96ms) by JSON::Schema::Modern::BEGIN@35 at line 79 of JSON/Schema/Modern/Document.pm # once (11µs+5.17ms) by OpenAPI::Modern::BEGIN@26 at line 641 of JSON/Schema/Modern.pm # spent 3.88ms (81µs+3.80) within Types::Standard::Slurpy which was called 9 times, avg 431µs/call: # 4 times (17µs+0s) by Types::Standard::__ANON__[/Users/ether/.perlbrew/libs/36.0@std/lib/perl5/Types/Standard.pm:826] at line 815 of Types/Standard.pm, avg 4µs/call # once (7µs+2.45ms) by OpenAPI::Modern::BEGIN@26 at line 122 of JSON/Schema/Modern.pm # once (10µs+1.29ms) by JSON::Schema::Modern::BEGIN@35 at line 79 of JSON/Schema/Modern/Document.pm # once (5µs+66µs) by OpenAPI::Modern::BEGIN@26 at line 641 of JSON/Schema/Modern.pm # once (35µs+0s) by Types::Standard::__ANON__[/Users/ether/.perlbrew/libs/36.0@std/lib/perl5/Types/Standard.pm:190] at line 23 of Types/Standard/Tuple.pm # once (7µs+0s) by Types::Standard::__ANON__[/Users/ether/.perlbrew/libs/36.0@std/lib/perl5/Types/Standard.pm:190] at line 26 of Types/Standard/Dict.pm # spent 1.33ms (114µs+1.22) within Types::Standard::Optional which was called 21 times, avg 63µs/call: # 19 times (104µs+1.22ms) by OpenAPI::Modern::BEGIN@26 at line 122 of JSON/Schema/Modern.pm, avg 70µs/call # once (5µs+0s) by Types::Standard::__ANON__[/Users/ether/.perlbrew/libs/36.0@std/lib/perl5/Types/Standard.pm:190] at line 22 of Types/Standard/Tuple.pm # once (5µs+0s) by Types::Standard::__ANON__[/Users/ether/.perlbrew/libs/36.0@std/lib/perl5/Types/Standard.pm:190] at line 27 of Types/Standard/Dict.pm # spent 7.42ms (128µs+7.29) within Types::Standard::InstanceOf which was called 17 times, avg 437µs/call: # 2 times (21µs+1.21ms) by JSON::Schema::Modern::BEGIN@34 at line 67 of JSON/Schema/Modern/Result.pm, avg 618µs/call # 2 times (9µs+557µs) by OpenAPI::Modern::BEGIN@26 at line 641 of JSON/Schema/Modern.pm, avg 283µs/call # once (10µs+3.45ms) by JSON::Schema::Modern::BEGIN@33 at line 40 of JSON/Schema/Modern/Error.pm # once (7µs+466µs) by main::BEGIN@2 at line 35 of OpenAPI/Modern.pm # once (7µs+433µs) by JSON::Schema::Modern::BEGIN@33 at line 52 of JSON/Schema/Modern/Error.pm # once (6µs+391µs) by JSON::Schema::Modern::BEGIN@35 at line 48 of JSON/Schema/Modern/Document.pm # once (12µs+127µs) by OpenAPI::Modern::BEGIN@28 at line 57 of JSON/Schema/Modern/Document/OpenAPI.pm # once (11µs+110µs) by JSON::Schema::Modern::BEGIN@34 at line 39 of JSON/Schema/Modern/Result.pm # once (7µs+109µs) by JSON::Schema::Modern::BEGIN@35 at line 46 of JSON/Schema/Modern/Document.pm # once (8µs+83µs) by JSON::Schema::Modern::BEGIN@34 at line 48 of JSON/Schema/Modern/Result.pm # once (7µs+83µs) by JSON::Schema::Modern::BEGIN@35 at line 79 of JSON/Schema/Modern/Document.pm # once (6µs+80µs) by JSON::Schema::Modern::BEGIN@35 at line 111 of JSON/Schema/Modern/Document.pm # once (5µs+70µs) by JSON::Schema::Modern::BEGIN@35 at line 40 of JSON/Schema/Modern/Document.pm # once (6µs+65µs) by JSON::Schema::Modern::Result::BEGIN@20 at line 36 of JSON/Schema/Modern/Annotation.pm # once (6µs+61µs) by main::BEGIN@2 at line 47 of OpenAPI/Modern.pm # spent 2.25ms (10µs+2.24) within Types::Standard::HasMethods which was called: # once (10µs+2.24ms) by OpenAPI::Modern::BEGIN@26 at line 901 of JSON/Schema/Modern.pm # spent 7.53ms (16µs+7.52) within Types::Standard::Tuple which was called 2 times, avg 3.77ms/call: # once (8µs+5.43ms) by OpenAPI::Modern::BEGIN@26 at line 701 of JSON/Schema/Modern.pm # once (8µs+2.09ms) by OpenAPI::Modern::BEGIN@26 at line 743 of JSON/Schema/Modern.pm # spent 2.78ms (12µs+2.77) within Types::Standard::Map which was called 2 times, avg 1.39ms/call: # once (9µs+2.77ms) by OpenAPI::Modern::BEGIN@26 at line 927 of JSON/Schema/Modern.pm # once (3µs+0s) by Types::Standard::__ANON__[/Users/ether/.perlbrew/libs/36.0@std/lib/perl5/Types/Standard.pm:190] at line 29 of Types/Standard/Dict.pm
sub (;$) {
6177113µs if (ref($_[0]) eq 'Type::Tiny::_HalfOp') {
7 my $complete_type = shift->complete($type);
8 @_ && wantarray ? return($complete_type, @_) : return $complete_type;
9 }
10354123µs my $params; $params = shift if ref($_[0]) eq q(ARRAY);
11177239µs6973.7ms my $t = $params ? $type->parameterize(@$params) : $type;
# spent 73.7ms making 69 calls to Type::Tiny::parameterize, avg 1.07ms/call
12177655µs @_ && wantarray ? return($t, @_) : return $t;
13 }
14
1540267µs}
16;